<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <head>
        <title>修改订单</title>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type">
        <style type="text/css">
            body {
                font-family: "微软雅黑";
                background-color: #EDEDED;
            }

            h2 {
                text-align: center;
                font-size: 26px;
            }

            table {
                margin: 30px auto;
                text-align: center;
                border-collapse: collapse;
                width: 50%;
            }

            td, th {
                padding: 5px;
                font-size: 18px;
            }

            hr {
                margin-bottom: 20px;
                border: 1px solid #aaa;
            }

            input, select, textarea {
                width: 284px;
                height: 30px;
                background: #EDEDED;
                border: 1px solid #999;
                text-indent: 5px;
                font-size: 18px;
            }

            input[type='submit'] {
                width: 130px;
                height: 36px;
                cursor: pointer;
                border-radius: 5px 5px 5px 5px;
                background: #ddd;
            }

            select {
                text-indent: 0px;
            }

            textarea {
                height: 100px;
                font-size: 22px;
            }
        </style>

        <script type="text/javascript">
        </script>
    </head>
<body>
<h2>修改订单</h2>
<hr/>
<form action="#" method="post" th:action="@{/order/update}" th:object="${order}">
    <!-- hidden隐藏域,在提交表单时连order.id一起提交 -->
    <input name="id" th:value="*{id}" type="hidden"/>
    <table border="1">
        <tr>
            <td width="30%">所属门店</td>
            <td>
                <select name="doorId">
                    <option th:each="door,stat:${doorList}" th:text="${door.name}" th:value="${door.id}" value="1">
                        永和大王
                    </option>
                </select>
            </td>
        </tr>
        <tr>
            <td>订单编号</td>
            <td>
                <input name="orderNo" th:value="*{orderNo}"
                       type="text" value=""/>
            </td>
        </tr>
        <tr>
            <td>订单类型</td>
            <td>
                <input name="orderType" th:value="*{orderType}"
                       type="text" value=""/>
            </td>
        </tr>
        <tr>
            <td>用餐人数</td>
            <td>
                <input name="pnum" th:value="*{pnum}"
                       type="text" value=""/>
            </td>
        </tr>
        <tr>
            <td>收银员</td>
            <td>
                <input name="cashier" th:value="*{cashier}"
                       type="text" value=""/>
            </td>
        </tr>
        <tr>
            <td>下单时间</td>
            <td>
                <input name="orderTime" th:value="*{orderTime}"
                       type="text" value=''/>
            </td>
        </tr>
        <tr>
            <td>结账时间</td>
            <td>
                <input name="payTime" th:value="*{payTime}"
                       type="text" value=''/>
            </td>
        </tr>
        <tr>
            <td>支付方式</td>
            <td>
                <input name="payType" th:value="*{payType}"
                       type="text" value=""/>

            </td>
        </tr>
        <tr>
            <td>支付金额</td>
            <td>
                <input name="price" th:value="*{price}"
                       type="text" value=""/>

            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="提 	交"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>



